<!-- Edit Modal -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Edit Profil</h4>
      </div>
      <div class="modal-body">
        <?php 
            echo form_open('profil/update', array('class' => 'form-horizontal', 'role' => 'form')); 
        ?>
        <input type="hidden" value="<?php echo $nama_user=$this->session->userdata('id');?>" name="id_user">
        <div class="form-group">
            <label class="col-sm-2 control-label">Nama Lengkap</label>
            <div class="col-sm-10">
                <input type="text" value="<?php echo $nama_user=$this->session->userdata('nama');?>" name="nama" class="form-control input-sm" placeholder="Nama Lengkap">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">Password</label>
            <div class="col-sm-10">
                <input type="password" class="form-control input-sm" name="password" placeholder="Tetap Kosongkan Jika Password Tidak Ingin Diubah">
            </div>
        </div>

        <div class="modal-footer">
            <button type="reset" class="btn btn-default btn-sm" data-dismiss="modal">Batal</button>
            <button type="submit" class="btn btn-primary btn-sm">Update</button>
        </div>
        <?php
            echo form_close();
        ?>

      </div>      
    </div>
  </div>
</div>
<!-- end saudara modal -->

<div id="page-wrapper">
    <!-- /.row -->
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <span class="judul-page">Profil Pengguna</span>
                    <span class="pull-right">                        
                        <a href="#" data-toggle="modal" data-target="#editModal" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-user"></span>&nbsp;Edit Profil</a>
                    </span>
                    <div class="clearfix"></div>
                </div>
                <div class="panel-body">
                    <div class="table-responsive">
                      <table class="table table-striped table-bordered table-hover">
                        <tr>
                            <td width="190">Nama Lengkap</td>
                            <td><?php echo $nama_user=$this->session->userdata('nama');?></td>
                        </tr>
                        <tr>
                            <td>Username</td>
                            <td><?php echo $nama_user=$this->session->userdata('user_id');?></td>
                        </tr>
                        <tr>
                            <td>Hak Akses Lembaga</td>
                            <td><?php echo $nama_user=$this->session->userdata('nama_lembaga');?></td>
                        </tr>
                      </table>
                      <font color="red"><?php echo form_error('nama'); ?></font>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->